setText

open fun setText(@NonNull charSequence: CharSequence)(source)

Set the text that is associated with this view. There is no selection associated with the text. The text may have style spans to supply additional display and semantic information. Compatibility behavior:

  • SDK 23 and above, this method matches platform behavior.
  • SDK 22 and below, this method does nothing.